<?php
class App_Functions
{
	//TODO : ne sert plus à rien, id = Zend_Registry::get('siteInfo')['id']
	public static function getSiteId()
	{
		$siteName =  Zend_Controller_Front::getInstance()->getRequest()->getParam('site');
		$db = Zend_Registry::get('db');
		$siteId = $db->fetchOne("SELECT id FROM core_site WHERE name = ?",$siteName);
		return $siteId;
	}
}